
package oneaccess;

import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;

import com.huaweicloud.saaslanding.dao.common.entity.master.User;
import com.huaweicloud.saaslanding.dao.common.repository.master.UserBaseMapper;
import com.huaweicloud.saaslanding.install.SaaslandingInstallApplication;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * 功能描述
 *
 * @since 2022-03-23
 */

@RunWith(SpringRunner.class)
@SpringBootTest(classes = SaaslandingInstallApplication.class, webEnvironment = RANDOM_PORT)
public class IdaasUserPropertiesTest {

    @Autowired
    UserBaseMapper userBaseMapper;

    @Test
    public void addUser() {
        User user = new User();
        user.setName("dd");
        userBaseMapper.insert(user);
    }

}
